package com.zhuhjay.service.system.model.domain;

import lombok.Data;

/**
 * 邮箱存储于Redis中的一些数据载荷
 *
 * @author ZhuHJay
 * @date 2023/8/8 10:16
 */
@Data
public class EmailRedisPayload {

    private Integer userId;
    private String code;

    public static EmailRedisPayload of(Integer userId, String code) {
        EmailRedisPayload payload = new EmailRedisPayload();
        payload.setUserId(userId);
        payload.setCode(code);
        return payload;
    }

}
